package com.learn.callback.level1;

import lombok.extern.slf4j.Slf4j;

/**
 * <p>项目名称: design-pattern </p>
 *
 * <p>文件名称: Teacher </p>
 */
@Slf4j
public class Teacher {

    private Student student;

    public Teacher(Student student) {
        this.student = student;
    }

    public void work(){
        student.homework(this);
    }

    public void callback(){
        log.info("家庭作业做完了");
    }
}
